package com.xrz.dao;

import com.xrz.pojo.QaqUser;
import com.xrz.pojo.vo.QaqUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
@Mapper
public interface QaqUserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(QaqUser record);

    int insertSelective(QaqUser record);

    QaqUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QaqUser record);

    int updateByPrimaryKey(QaqUser record);

    QaqUser selectByUsername(String username);

    Collection<QaqUser> selectAllUser();

    List<QaqUserVo> selectByPrimaryKeys(@Param("ids") List GroupInfoVo);

    QaqUserVo getUserByUsername(String username);

    int updateByUidSelective(QaqUser qaqUser);

    QaqUser getUserByPhone(String phone);

    QaqUserVo getUserInfoByPhone(String phone);

    Collection<QaqUserVo> getUserInfoByNick(String nickName);


    QaqUser getUserByPhoneAndUserName(String phone);
}